function up_launchWM( userID, destinationUserID, destinationName )
{

//alert (destinationUserID);

	up_localUserID = userID;
		
window.open( "http://www.alika-love-agency.com/index.php/Chat/wm?tchat=true&strDestinationUserID=" + destinationUserID + "&userID=" + userID, "WMWindow_" +  up_replaceAlpha(userID) + "_" + up_replaceAlpha(destinationUserID), "width=360,height=600,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
//window.open( "http://192.168.1.4:82/web/index.php/Chat/wm?tchat=true&strDestinationUserID=" + destinationUserID + "&userID=" + userID, "WMWindow_" +  up_replaceAlpha(userID) + "_" + up_replaceAlpha(destinationUserID), "width=360,height=600,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );


}


function up_launchWM1( userID, destinationUserID, destinationName )
{

//alert (destinationUserID);

	up_localUserID = userID;
		
window.open( "http://www.alika-love-agency.com/index.php/Chat/wm?tchat=false&strDestinationUserID=" + destinationUserID + "&userID=" + userID, "WMWindow_" +  up_replaceAlpha(userID) + "_" + up_replaceAlpha(destinationUserID), "width=360,height=600,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
}


function up_launchUL()
{		
	window.open( "http://www.alika-love-agency.com/index.php/webmessenger/userlist/ul_ads.php" , "ULWindow" , "width=200,height=750,toolbar=0,directories=0,menubar=0,status=0,location=0,scrollbars=0,resizable=1" );
}
function up_replaceAlpha( strIn )
{
	var strOut = "";
	for( var i = 0 ; i < strIn.length ; i++ )
	{
		var cChar = strIn.charAt(i);
		if( ( cChar >= 'A' && cChar <= 'Z' )
			|| ( cChar >= 'a' && cChar <= 'z' )
			|| ( cChar >= '0' && cChar <= '9' ) )
		{
			strOut += cChar;
		}
		else
		{
			strOut += "_";
		}
	}
	
	return strOut;
}
